from django.conf.urls import url
from df_user import views

urlpatterns = [
    url(r'^register/$', views.register, name='register'),
    # url(r'^register_handle/$', views.register_handle),
    url(r'^check_user_exist/$', views.check_user_exist, name='check_user_exist'), # 校验用户名是否存在

    url(r'^login/$', views.login, name='login'),
    url(r'^login_check/$', views.login_check, name='login_check'),
    url(r'^logout/$', views.logout, name='logout'),

    url(r'^$', views.user, name='user_center_info'),
    url(r'^address/$', views.address, name='address'),
    # url(r'^order/$', views.order),
    url(r'^order/(?P<pindex>\d*)/?$', views.order, name='user_order'),
    # url(r'^order/(\d*)/?$', views.order)
    # todo(hans): url设计
]
